package net.sppan.base.dao;

import net.sppan.base.dao.support.IBaseDao;
import net.sppan.base.entity.mgEntity.MgUser;
import net.sppan.base.entity.mgEntity.MgCode;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import javax.persistence.EntityManager;
import javax.persistence.NamedNativeQueries;
import javax.persistence.NamedNativeQuery;
import javax.persistence.PersistenceContext;

@Repository
public interface IMgCodeDao extends IBaseDao<MgCode,Integer> {


	MgCode findByCode(String code);


	MgCode findByCodeStatusAndCodeType(String codeStatus, String codeType);



}
